# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=arcane
pkgver=2.750cb9f
pkgrel=2
pkgdesc='Backdoor iOS packages and create the necessary resources for APT repositories.'
groups=('blackarch' 'blackarch-mobile' 'blackarch-backdoor')
arch=('any')
url='https://github.com/tokyoneon/Arcane'
license=('custom:unknown')
depends=('bash' 'bzip2' 'openbsd-netcat')
makedepends=('git')
source=("$pkgname::git+https://github.com/tokyoneon/Arcane.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md

  cp -a images samples "$pkgdir/usr/share/$pkgname/"
}

